package org.dromara.stock.domain.bo;

import org.dromara.stock.domain.AttentionStock;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 关注分组明细业务对象 stk_attention_stock
 *
 * @author dongfs
 * @date 2024-06-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AttentionStock.class, reverseConvertGenerate = false)
public class AttentionStockBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { AddGroup.class })
    private Long id;

    /**
     * 自选标签ID
     */
    @NotNull(message = "自选标签ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long attentionId;

    /**
     * 编码
     */
    @NotBlank(message = "编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
